package com.bob.web.common.constant;

import com.bob.web.entity.system.Admin;

/**
 * Created by admin on 2017/7/5.
 */
public class SystemHoldContext {

    public static ThreadLocal<Admin> userThreadLocal = new ThreadLocal<>();

    public static Admin getCurrentUser() {
        return userThreadLocal.get();
    }

    public static void setCurrentUser(Admin admin) {
        userThreadLocal.set(admin);
    }
}
